#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a = 0;
	int b = 1;
	int c = 0;
	int count = 2;
	printf("%d %d ", a, b);
	for (int i = 0; i < 18; i++)
	{
		c = a + b;
		a = b;
		b = c;
		count++;
		printf("%d ", c);
		if (count%8==0)
		{
			printf("\n");
		}
	}
}